home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / gxcpath.h < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  46 lines

  1. /* Copyright (C) 1991 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* gxcpath.h */
  20. /* Interface to clipping devices */
  21. /* requires gzpath.h */
  22.  
  23. /* A cached cursor, relative to a known gx_clip_list. */
  24. typedef struct rect_cursor_s {
  25.     gx_clip_rect *rptr;
  26. } rect_cursor;
  27.  
  28. /* Device for accumulating a rectangle list. */
  29. typedef struct gx_device_accum_s {
  30.     gx_device_common;
  31.     const gs_memory_procs *memory_procs;    /* set by client */
  32.     gs_int_rect bbox;
  33.     gx_clip_list list;
  34.     gx_clip_rect *last;
  35. } gx_device_accum;
  36. extern const gx_device_accum gs_accum_device;
  37.  
  38. /* Device for clipping with a rectangle list. */
  39. typedef struct gx_clip_device_s {
  40.     gx_device_common;
  41.     gx_device *target;        /* set by client */
  42.     gx_clip_list list;        /* set by client */
  43.     rect_cursor current;
  44. } gx_device_clip;
  45. extern const gx_device_clip gs_clip_device;
  46.